﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication5.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
             姓名：<asp:TextBox ID="UserName" runat="server"></asp:TextBox><br />
             密码：<asp:TextBox ID="Password" runat="server"></asp:TextBox><br />
             邮箱：<asp:TextBox ID="Email" runat="server"></asp:TextBox><br />
             介绍：<asp:TextBox ID="Intro" runat="server"></asp:TextBox><br />
             <asp:Button ID="Button2" runat="server" Text="注册" OnClick="Button2_Click"/>
            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
             <br />
             <br />
             <br />
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <asp:Button ID="Button1" runat="server" Text="搜索" OnClick="Button1_Click" />
            <div class="container form-group">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="stu_id" Height="254px" Width="1001px" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="GridView1_RowDeleting">
                <Columns>
                    <asp:BoundField DataField="stu_name" HeaderText="名字" SortExpression="stu_name" />
                    <asp:BoundField DataField="email" HeaderText="邮箱" SortExpression="email" />
                    <asp:BoundField DataField="intro" HeaderText="介绍" SortExpression="intro" />
                    <asp:BoundField DataField="password" HeaderText="密码" SortExpression="password" />
                    <asp:CommandField HeaderText="编辑" ShowEditButton="True" ShowHeader="True">
                        <ItemStyle Width="150px" />
                        </asp:CommandField>
                        <asp:CommandField HeaderText="删除" ShowDeleteButton="True" ShowHeader="True" />
                </Columns>
             </asp:GridView>
            </div>
        </div>
    </form>
</body>
</html>
